package com.xrit.sunnyday.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.xrit.sunnyday.dao.SetMealDao;
import com.xrit.sunnyday.dao.SetMealMobileDao;
import com.xrit.sunnyday.pojo.Setmeal;
import com.xrit.sunnyday.service.SetMealMobileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 类名称: SetMealMobileServiceImpl
 * 类描述:TODO
 * 创建人: czb
 * 创建时间:2022/6/27 上午 11:29
 * Version 1.0.0
 */
@Service(interfaceClass = SetMealMobileService.class)
@Transactional
public class SetMealMobileServiceImpl implements SetMealMobileService {
    @Autowired
    private SetMealMobileDao setMealMobileDao;
    @Override
    public List<Setmeal> findAll() {
        return setMealMobileDao.findAll();
    }

    @Override
    public Setmeal findDetailById(int id) {
        return setMealMobileDao.findDetailById(id);
    }

    @Override
    public Setmeal findById(Integer id) {
        return setMealMobileDao.findById(id);
    }
}
